using MauiBuilder.ViewModels;

namespace MauiBuilder.Views;

/// <summary>
/// 功能测试页面
/// </summary>
public partial class FeatureTestPage : ContentPage
{
    private readonly FeatureTestViewModel _viewModel;

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="viewModel">视图模型</param>
    public FeatureTestPage(FeatureTestViewModel viewModel)
    {
        InitializeComponent();
        BindingContext = _viewModel = viewModel;
    }

    /// <summary>
    /// 页面出现时
    /// </summary>
    protected override void OnAppearing()
    {
        base.OnAppearing();
        // 页面出现时的处理逻辑
    }

    /// <summary>
    /// 页面消失时
    /// </summary>
    protected override void OnDisappearing()
    {
        base.OnDisappearing();
        // 页面消失时的清理逻辑
    }
}